/**
 * ClaimExamController.java
 * Version 1.0.0
 * Created on 2018年7月24日
 *
 */
package com.yincheng.oes.business.exam.examlist.claimexam;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author yangsy
 * @version 1.0.0
 * @since
 * 创建时间：2018年7月24日
 * <p>
 * 功能描述：认领试卷controller
 * <p>
 * 邮箱地址：446948434@qq.com
 */
@Controller
@RequestMapping("/claimExam")
public class ClaimExamController {

    @Autowired
    private ClaimExamService claimExamService;

    /**
     * 批量认领试卷
     *
     * @param resultIds
     */
    @RequestMapping(value = "/claimExam.json", method = RequestMethod.POST)
    public void claimExam(String resultIds) {
        claimExamService.claimExamsByResultId(resultIds);
    }
}
